package com.xxcxcxcx.jobsystem.common.event;

import net.minecraft.world.item.Item;
import net.minecraft.world.item.Items;
import net.minecraftforge.event.furnace.FurnaceFuelBurnTimeEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;

@Mod.EventBusSubscriber
public class Otherevent {

    @SubscribeEvent
    public static void FurnaceFuelBurnTimeEventChange(FurnaceFuelBurnTimeEvent event) {
        Item item=event.getItemStack().getItem();
        if(item== Items.COAL||item==Items.CHARCOAL||item== Items.COAL_BLOCK){
            event.setBurnTime(event.getBurnTime()/2);
        }else event.setBurnTime(event.getBurnTime()/10);
    }
}
